<!DOCTYPE html>
<html>
<head>
    <title>学生题目解析列表</title>
		<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
			<!--<#if shiro.hasPermission("sys:classtimeuser:save")>&ndash;&gt;
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>&ndash;&gt;
			</#if>
			<#if shiro.hasPermission("sys:classtimeuser:update")>&ndash;&gt;
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>&ndash;&gt;
			</#if>-->
			<#if shiro.hasPermission("sys:classtimeuser:delete")>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
														                    <!--<div class="form-group">-->
                        <!--<div class="col-sm-2 control-label">课次id</div>-->
                        <!--<div class="col-sm-10">-->
                            <!--<input type="text" class="form-control" v-model="classtimeuser.courseid" placeholder="课次id"/>-->
                        <!--</div>-->
                    <!--</div>-->
                    <div class="form-group">
                        <div class="col-sm-2 control-label">课程</div>
                        <div class="col-sm-10">
                            <el-select v-model="classtimeuser.courseid" placeholder="请选择" @change="setCourseTitle">
                                <el-option
                                        v-for="item in courses"
                                        :key="item.id"
                                        :label="item.title"
                                        :value="item.id">
                                </el-option>
                            </el-select>
                        </div>
                    </div>
											                    <!--<div class="form-group">-->
                        <!--<div class="col-sm-2 control-label">学生id</div>-->
                        <!--<div class="col-sm-10">-->
                            <!--<input type="text" class="form-control" v-model="classtimeuser.userid" placeholder="学生id"/>-->
                        <!--</div>-->
                    <!--</div>-->
											                    <!--<div class="form-group">-->
                        <!--<div class="col-sm-2 control-label">课次id</div>-->
                        <!--<div class="col-sm-10">-->
                            <!--<input type="text" class="form-control" v-model="classtimeuser.classtimeid" placeholder="课次id"/>-->
                        <!--</div>-->
                    <!--</div>-->

                    <div class="form-group">
                        <div class="col-sm-2 control-label">课次</div>
                        <div class="col-sm-10">
                            <el-select v-model="classtimeuser.classtimeid" placeholder="请选择" @change="setClassTimeTitle">
                                <el-option
                                        v-for="item in classtimes"
                                        :key="item.id"
                                        :label="item.name"
                                        :value="item.id">
                                </el-option>
                            </el-select>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-2 control-label">老师</div>
                        <div class="col-sm-10">
                            <el-select v-model="classtimeuser.userid" placeholder="请选择" @change="setUsername">
                                <el-option
                                        v-for="item in users"
                                        :key="item.id"
                                        :label="item.username"
                                        :value="item.id">
                                </el-option>
                            </el-select>
                        </div>
                    </div>

											                    <div class="form-group">
                        <div class="col-sm-2 control-label">题目解析</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="classtimeuser.topicanalysis" placeholder="题目解析"/>
                        </div>
                    </div>
											                    <!--<div class="form-group">-->
                        <!--<div class="col-sm-2 control-label">答题时间</div>-->
                        <!--<div class="col-sm-10">-->
                            <!--<input type="text" class="form-control" v-model="classtimeuser.answertime" placeholder="答题时间"/>-->
                        <!--</div>-->
                    <!--</div>-->
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">视频路径</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="classtimeuser.vediourl" placeholder="视频路径"/>
                        </div>
                    </div>
							            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" id="btnSaveOrUpdate" data-loading-text="保存中..." @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/sys/classtimeuser.js?_${.now?long}"></script>
</body>
</html>